Method for on-die detection of the system operation frequency in a DRAM to adjust DRAM operations

ABSTRACT

The present invention relates to a method of operating a memory system comprising a memory chip. An operating signal is generated at an operating frequency. The operating frequency is applied to the memory chip to control one or more electrical components of the memory system. A reference signal is generated at a reference frequency within the memory chip and a range of values for the operating frequency is detected based on the reference signal and the operating signal.

RELATED APPLICATIONS

The present patent document is a divisional application of U.S. patentapplication Ser. No. 10/260,919 filed Sep. 30, 2002, which is herebyincorporated herein in its entirety by this reference.

BACKGROUND

1. Field of the Invention

The present invention relates to the field of memory chips.

2. Discussion of Related Art

A known integrated memory IC 100 that is a writeable memory of the DRAMtype is shown in FIG. 1. Such a dynamic random access memory (DRAM) chip100 includes a plurality of memory storage cells 102 in which each cell102 has a transistor 104 and an intrinsic capacitor 106. As shown inFIGS. 2 and 3, the memory storage cells 102 are arranged in arrays 108,wherein memory storage cells 102 in each array 108 are interconnected toone another via columns of conductors 110 and rows of conductors 112.The transistors 104 are used to charge and discharge the capacitors 106to certain voltage levels. The capacitors 106 then store the voltages asbinary bits, 1 or 0, representative of the voltage levels. The binary 1is referred to as a “high” and the binary 0 is referred to as a “low.”The voltage value of the information stored in the capacitor 106 of amemory storage cell 102 is called the logic state of the memory storagecell 102.

As shown in FIGS. 1 and 2, the memory chip 100 includes six addressinput contact pins A0, A1, A2, A3, A4, A5 along its edges that are usedfor both the row and column addresses of the memory storage cells 102.The row address strobe (RAS) input pin receives a signal RAS that clocksthe address present on the DRAM address pins A0 to A5 into the rowaddress latches 114. Similarly, a column address strobe (CAS) input pinreceives a signal CAS that clocks the address present on the DRAMaddress pins A0 to A5 into the column address latches 116. The memorychip 100 has data pin Din that receives data and data pin Dout thatsends data out of the memory chip 100. The modes of operation of thememory chip 100, such as Read, Write and Refresh, are well known and sothere is no need to discuss them for the purpose of describing thepresent invention.

A variation of a DRAM chip is shown in FIGS. 5 and 6. In particular, byadding a synchronous interface between the basic core DRAMoperation/circuitry of a second generation DRAM and the control comingfrom off-chip a synchronous dynamic random access memory (SDRAM) chip200 is formed. The SDRAM chip 200 includes a bank of memory arrays 208wherein each array 208 includes memory storage cells 210 interconnectedto one another via columns and rows of conductors.

As shown in FIGS. 5 and 6, the memory chip 200 includes twelve addressinput contact pins A0-A11 that are used for both the row and columnaddresses of the memory storage cells of the bank of memory arrays 208.The row address strobe (RAS) input pin receives a signal RAS that clocksthe address present on the DRAM address pins A0 to A11 into the bank ofrow address latches 214. Similarly, a column address strobe (CAS) inputpin receives a signal CAS that clocks the address present on the DRAMaddress pins A0 to A11 into the bank of column address latches 216. Thememory chip 200 has data input/output pins DQ0-15 that receive and sendinput signals and output signals. The input signals are relayed from thepins DQ0-15 to a data input register 218 and then to a DQM processingcomponent 220 that includes DQM mask logic and write drivers for storingthe input data in the bank of memory arrays 208. The output signals arereceived from a data output register 222 that received the signals fromthe DQM processing component 220 that includes read data latches forreading the output data out of the bank of memory arrays 208. The modesof operation of the memory chip 200, such as Read, Write and Refresh,are well known and so there is no need to discuss them for the purposeof describing the present invention.

A variation of the SDRAM chip 200 is a double-data-rate SDRAM (DDRSDRAM) chip. The DDR SDRAM chip 300 imparts register commands andoperations on the rising edge of the clock signal while allowing data tobe transferred on both the rising and falling edges of the clock signal.Differential input clock signals CLK and CLK(bar) are used in the DDRSDRAM. A major benefit of using a DDR SDRAM is that the data transferrate can be twice the clock frequency because data can be transferred onboth the rising and falling edges of the CLK clock input signal.

It is noted that new generations of memory systems that employ SDRAM andDDR SDRAM chips are increasing their frequency range. Currently, SDRAMand DDR SDRAM chips are unable to determine the frequency at which theyare operating in a particular memory system. As the frequency range ofthe memory system widens, it can pose some problems for the SDRAM andDDR SDRAM chips. For example, a DDR SDRAM chip has to time operationsbetween different clocking domains. It is known that the clockingdomains change their relative timing to one another as a function of theoperating frequency of the memory system. This change in relative timingis illustrated in FIGS. 7 and 8.

In the case of a slow operating frequency, such as e.g 66 MHz, thesystem clock signal VCLK is directed to the clock pin of the DDR SDRAM.The system clock signal VCLK generates within the DDR SDRAM an internalclock signal ICLK that clocks the central command unit of the DDR SDRAM.This means that all internal commands generated by the central commandunit are synchronized with the internal clock signal ICLK. As shown inFIG. 7, while the internal clock signal ICLK has the same frequency asthe system clock signal VCLK, it lags the system clock signal VCLK by aconstant amount tMAR2. The lag is caused by several gate and propagationdelays. This lag results in a phase shift between ICLK and VCLK thatgrows in magnitude as the frequency of the clock signals is raised. Thisphase shift increase is a result of the relation of the constant tMAR2to the cycle time that decreases with an increase in the clockfrequency.

As shown in FIG. 7, a second internal clock signal DCLK is generated bya DLL of the DDR SDRAM. The internal clock signal DCLK and the systemclock signal VCLK each have the same frequency. However, the internalclock signal DCLK is advanced with respect to the system clock signalVCLK by a constant amount tMAR1 that is dependent on the chiptemperature, process variation and the operating frequency. The purposeof advancing the internal clock signal DCLK relative to the system clocksignal VCLK is to time internal events within the DDR SDRAM so that theyare edge aligned with the system clock signal VCLK when observed at theexternal DDR SDRAM pin.

As shown in FIG. 7, the signal SIG_(clk1) is generated synchronous tothe clock signal ICLK. Next, the signal SIG_(clk1) is synchronized withand handled to the internal clock signal DCLK. As shown in FIG. 7, thesignal SIG_(clk2) shows the timing of the signal after latching(synchronizing) the signal SIG_(clk1) to the internal clock signal DCLKdomain. Signal SIG′_(clk2) shows the signal SIG_(clk2) after beingshifted by one clock cycle DCLK.

As shown in FIG. 8, a different situation occurs when the systemoperates at a fast operating frequency, such as e.g. 200 MHz. Inparticular, while the internal clock signal ICLK still has the samefrequency as the system clock signal VCLK, it lags the system clocksignal VCLK by a constant amount tMAR2 that results in a greater phasedelay when compared with the slow frequency case of FIG. 7. In addition,while the internal clock signal DCLK and the system clock signal VCLKeach have the same frequency, the internal clock signal DCLK is advancedwith respect to the system clock signal VCLK by a constant amount tMAR′1that results in a greater phase delay when compared with the slowfrequency case of FIG. 7. As shown in FIG. 8, the signal SIG_(clk1) isgenerated synchronous to the clock signal ICLK. Similarly, this signalSIG_(clk1) is synchronized and handled to the DCLK. SIG_(clk2) shows thetiming of the signal after latching (synchronizing) it to the DCLKdomain. SIG′_(clk2) shows the signal SIG_(clk2) after shifting it by oneclock cycle of DCLK. The end result is that the relative timing of theclock signals ICLK and DCLK is drastically different when compared withthe slow frequency case.

With the above-described disparity in the relative timing it makes itvery difficult to run commands within the DDR SDRAM in a consistentmanner independent of the operating frequency of the system. Forexample, suppose that an output signal of the DDR SDRAM needs to beobserved three VCLK cycles after the generation of the signalSIG_(clk1). If the system was in the slow frequency mode, then theoutput signal would occur upon the DDR SDRAM chip counting the four DCLKpulses T0, T1, T2 and T3. In contrast, the output signal would occurafter the chip counted only the three DCLK pulses T1, T2 and T3 in thefast frequency mode. Thus, the DDR SDRAM chip is unable to consistentlyrun the output command based solely on the number of DCLK pulsescounted. This limits the maximum operation frequency in which the DDRSDRAM can be operated within a DDR system. In addition, it limits thetypes of products run by the memory chip. In particular, a memory chipis able to run products that operate within a particular frequency rangewhile the memory chip is unable to run other products that operateoutside the particular frequency range.

BRIEF SUMMARY

One aspect of the present invention regards a memory system thatincludes a clock that controls one or more electrical components with anoperating signal that is at an operating frequency and a memory chipconnected to the clock, wherein the memory chip has a frequency detectorfor detecting at the least a range of values for the operatingfrequency.

A second aspect of the present invention regards a method of operating amemory system that includes generating an operating signal, controllingone or more electrical components with the operating signal and having amemory chip detect at the least a range of values for the operatingfrequency.

Each aspect of the present invention provides the advantage ofsimplifying control SDRAM control logic and therefore reducing die size.

Each aspect of the present invention provides the advantage of enablinghigh operation frequencies and thus increasing the SDRAM internal timingmargin.

The present invention, together with attendant objects and advantages,will be best understood with reference to the detailed description belowin connection with the attached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 schematically shows a top view of an embodiment of a known memorychip;

FIG. 2 shows a block diagram of the memory chip of FIG. 1;

FIG. 3 schematically shows an embodiment of a memory array to be usedwith the memory chip of FIG. 1;

FIG. 4 schematically shows an embodiment of a memory cell to be usedwith the memory array of FIG. 3;

FIG. 5 schematically shows a top view of a second embodiment of a knownmemory chip;

FIG. 6 shows a block diagram of the memory chip of FIG. 5;

FIG. 7 shows a first timing diagram for a third embodiment of a knownmemory chip;

FIG. 8 shows a second timing diagram for the third embodiment of a knownmemory chip;

FIG. 9 shows a block diagram of two embodiments of a memory system inaccordance with the present invention;

FIG. 10 schematically shows an embodiment of a frequency detector to beused with the memory system of FIG. 9;

FIG. 11 shows a first timing diagram for the memory system of FIGS. 9and 10;

FIG. 12 shows a second timing diagram for the memory system of FIGS. 9and 10; and

FIG. 13 schematically shows a second embodiment of a frequency detectorto be used with the memory system of FIG. 9.

DETAILED DESCRIPTION OF THE DRAWINGS AND THE PRESENTLY PREFERREDEMBODIMENTS

As shown in FIG. 9, a memory system 301 according to the presentinvention includes a DDR SDRAM chip 300 that has a structure similar tothat of the DDR SDRAM chip described previously. In particular, the DDRSDRAM chip 300 includes a bank of memory arrays 308 that include memorystorage cells 310 interconnected to one another via columns and rows ofconductors in a manner similar to the memory arrays 208 and memorystorage cells 210 discussed previously with respect to the SDRAM memorychip 200 of FIGS. 5 and 6. The memory chip 300 includes address inputcontact pins, differential clock pins to receive differential clockinput signals and input/output pins DQ that receive and output signalsin the same manner as their counterparts in the SDRAM chip 200 discussedpreviously. It should be noted that the present invention can be usedwith other types of memory chips that has to be synchronized betweenindependent scaling clocking phases, such as DRAM, SDRAM, DDR SGRAM, DDRSDRAM and SRAM memory chips.

As shown in FIG. 10, the frequency detector 322 has a referencefrequency generator, such as an oscillator 324, that generates areference clock signal REF_CLK. The reference clock signal REF_CLK has areference frequency that is in between the maximum and minimum possibleoperation frequencies of the memory chip 300 and is chosen according tothe individual chip requirements. For example, the reference frequencycould be the threshold frequency of the memory chip 300. Upon selectionof the reference frequency, operations performed by the memory chip 300can be thought of as being performed in two distinct frequencyregions—1) a first region with frequencies at or above the minimumfrequency of the memory chip 300 and below the reference frequency and2) a second region with frequencies at or above the reference frequencyand at or below the maximum operation frequency of the memory chip 300.With this demarcation, the memory chip 300 performs an operation mode Awithin the first region and performs an operation mode B within thesecond region. For example, low frequency applications or low endproducts would be run by the memory chip 300 in operation mode A whilehigh frequency applications or high end products would be run by thememory chip 300 in operation mode B.

An indirect frequency measurement technique is used to determine theexternal clock frequency since the time period that would be used tocalculate the frequency is most likely not calibrated because it ismeasured from within the chip and can vary from chip to chip. This meansthe accuracy of a direct frequency measurement of the external clockfrequency would not be very high. In the indirect technique, the clocksignal EXT_CLK is directed to a counter 326 that counts the number ofcycles of the clock signal EXT_CLK over a given amount of time. Thecount is output as the signal NUM_CLK. Similarly, the reference signalREF_CLK is directed to a second counter 328 that counts the number ofcycles of the reference signal over a given amount of time. The count isoutput as the signal NUM_REF.

The count output signals NUM_CLK and NUM_REF are directed to acomparator 330 of the frequency detector 322. As shown in FIGS. 11 and12, after the given amount of time has passed and the signals NUM_CLKand NUM_REF are validated, an ENABLE signal is generated and sent to thecomparator 330. Upon receipt of the ENABLE signal, the comparator 330compares the values of the operating frequency and the referencefrequency.

As an example, should comparator 330 determine that the external clockfrequency is less than the reference frequency, then a FREQ_DET signalis output from the comparator 330 at a low state as shown in FIG. 11.The low state means that the clock frequency is within the first rangeof frequencies mentioned above. As shown in FIG. 12, should thecomparator 330 determine that the external clock frequency is greaterthan the reference frequency, then the FREQ_DET signal is output as ahigh state and the clock frequency is within the second range offrequencies as mentioned above. In the case where the operationfrequency and the reference frequency are equal, the comparator willassign either a stable high or a low output. Which state is chosendepends on the application purpose for which the frequency detection ischosen. In the example given above where operation mode B is used if theoperation frequency is equal or higher than the reference frequency, thecomparator will be assigned to a high state in the case of equilibriumbetween the operation and reference frequencies.

As shown in FIG. 9, a second embodiment of a memory system 301′ is shownwhere the previously described memory system 301 has been altered sothat a frequency detector 322′ replaces the frequency detector 322previously described. As shown in FIG. 13, the frequency detector 322′includes an additional reference frequency generator and comparator whencompared with the frequency detector 322 of FIG. 10. The secondfrequency generator, such as an oscillator 332, generates a secondreference clock signal REF2_CLK representative of a second referencefrequency. The second reference frequency is chosen based on theparticular application to be applied to the memory chip 300.

In this embodiment shown in FIG. 13, the clock signal EXT_CLK isdirected to a counter 326 that counts the number of cycles of the clocksignal EXT_CLK over a given amount of time. The count is output as thesignal NUM_CLK. Similarly, the reference signals REF1_CLK and REF2_CLKare directed to corresponding counters 328 and 334 that count the numberof cycles of the reference signals over a given amount of time. Thecounts are output as the signals NUM1_REF and NUM2_REF.

The count output signals NUM_CLK, NUM1_REF and NUM2_REF are thendirected to a comparator system 336 of the frequency detector 322′,after predetermined number of count output signals NUM_CLK1 have beengenerated, an ENABLE1 signal is sent to the comparator 330 which thencompares each of the values of the two reference frequencies with theoperating frequency in a manner similar to that described previously forthe memory system 301 of FIGS. 9 and 10. In particular, count outputsignals NUM_CLK1 and NUM1_REF are directed to the comparator 330, whichcompares the operating frequency with the first reference frequency.Similarly, count output signals NUM_CLK2 and NUM2_REF are directed tothe second comparator 338 after generating an ENABLE2 signal whichcompares the operating frequency with the second reference frequency.

As an example, let the first and second reference frequencies bedesignated as α and β, respectively, wherein ω_(min)≦α<β≦ω_(max), andwherein ω_(min) and ω_(max) are the minimum and maximum operationfrequencies, respectively, of the memory chip 300. In this example, whenthe comparator 330 determines that the external clock frequency isgreater than the first reference frequency, then a FREQ1_DET signal isoutput from the comparator 330 at a high state indicating that the clockfrequency is within the range α≦clock frequency≦ω_(max). Should thecomparator 330 determine that the clock frequency is less than the firstreference frequency, then the FREQ1_DET signal is output as a low stateindicating that the clock frequency is in the range ω_(min)≦clockfrequency<α.

While the first reference frequency is compared, the second referencefrequency is compared in a similar manner. In the same examples above,should the comparator 338 determine that the clock frequency is greaterthan the second reference frequency, then a FREQ2_DET signal is outputfrom the comparator 338 at a high state indicating that the externalclock frequency is within the range β≦clock frequency≦ω_(max). Shouldthe comparator determine that the clock frequency is less than thesecond reference frequency, then the FREQ2_DET signal is output as a lowstate then the clock frequency is in the range of ω_(min)≦clockfrequency<β.

The end result of the comparison of the two reference frequencies isthat two ranges for the clock frequency are determined. Obviously, theclock frequency has a value that is within a range that is defined asthe overlap of the two ranges determined. In the case when thecomparators 330 and 338 determine that the clock frequency is above thefirst reference frequency and below the second reference frequency, thenthe clock frequency has a value that lies within the overlap of theranges α≦clock frequency≦ω_(max) and ω_(min)≦clock frequency<β. In otherwords, the clock frequency has a value that lies within the rangeα≦clock frequency<β.

It should be pointed out that it is possible in the above example todetermine the frequency exactly when the minimum end point of one rangeis exactly the same as the maximum end point of the other range.Needless to say this would be a rare event.

Comparing the two memory systems 301 and 301′, the clocking frequencycan be determined with more accuracy with the memory system 301′ due tothe use of an additional reference frequency generator. The clockfrequency can be determined even more accurately by adding one or moreadditional reference frequency generators and corresponding comparatorsand counters so as to generate additional ranges of possible clockingfrequency values. Again, the overlap of all of the detected ranges willresult in determining where the clocking frequency lies.

Once the range of the clocking frequency is determined in the mannerdescribed above, the determined clocking frequency range can be used toimprove the operation of the memory system. For example, the delay linelength of a delay-locked-loop of a DDR SDRAM can be pre-adjusted basedon the determined clocking frequency so as to decrease to thedelay-locked-loop's locking time and possibly its power consumption. Inaddition, the frequency of a latency control logic of a memory chip canbe adjusted based on the determined clocking frequency. That waydifferent methods to determine the latency can be applied according tothe current operating frequency which results in a wider possiblefrequency range the chip can operated in. The determined clockingfrequency can also be used to indicate timing protocols for devices thatare specified to run in different types of systems. That way differentproduct specifications (e.g. high end/low end products) can beimplemented in one chip. Thus saving development, production andlogistic costs while increasing the portfolio. In addition, thedetermined clocking frequency can be stored on the memory chip and beused for choosing different computing modes, such as delaying the timingof an internal clock of the memory chip so as to correct the situationdiscussed previously with respect to FIGS. 7 and 8.

The foregoing description is provided to illustrate the invention, andis not to be construed as a limitation. Numerous additions,substitutions and other changes can be made to the invention withoutdeparting from its scope as set forth in the appended claims.

1. A method of operating a memory system comprising a memory chip, themethod comprising: generating an operating signal at an operatingfrequency; applying said operating signal to said memory chip forcontrolling one or more electrical components of said memory system withsaid operating signal; generating a reference signal at a referencefrequency within said memory chip; and detecting a range of values forsaid operating frequency on the basis of said reference signal and saidoperating signal.
 2. The method of claim 1, wherein said memory chip isa DRAM memory chip.
 3. The method of claim 1, wherein said memory chipis a SDRAM memory chip.
 4. The method of claim 1, wherein said memorychip is a DDR SDRAM memory chip.
 5. The method of claim 1, furthercomprising comparing the values of said operating frequency and saidreference frequency.
 6. The method of claim 1, further comprising:counting a first number of cycles of said operating signal over a firstgiven amount of time; and counting a second number of cycle of saidreference signal over a second given amount of time.
 7. The method ofclaim 1, further comprising generating a second reference signal at asecond reference frequency.
 8. The method of claim 7, further comprisingcomparing the value of said operating frequency with both said referencefrequency and said second reference frequency.
 9. The method of claim 8,further comprising: determining a first range of values based on saidcomparing the value of said operating frequency with said referencefrequency; and determining a second range of values based on saidcomparing the value of said operating frequency with said secondreference frequency.
 10. The method of claim 9, further comprising:determining an overlap of said first and second range of values.
 11. Themethod of claim 1, further comprising: selecting a computing mode basedon said detected range of values for said operating frequency.
 12. Themethod of claim 11, wherein said selected computing mode comprises:delaying the timing of an internal clock of said memory chip.
 13. Themethod of claim 1, further comprising: adjusting a delay line length ofa delay-locked loop based on said detected range of values for saidoperating frequency.
 14. The method of claim 1, further comprising:adjusting a frequency of said at least one electrical component based onsaid detected range of values for said operating frequency.
 15. Themethod of claim 14, wherein said at least one electrical componentcomprises a latency control logic.
 16. The method of claim 14, furthercomprising: indicating a timing protocol for said at least oneelectrical component based on said detected range of values of saidoperating frequency.